package com.hsjk.szwj.module.pay.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hsjk.szwj.module.pay.dal.dataobject.system.IsvInfoDO;
import com.hsjk.szwj.module.pay.dal.mysql.IIsvInfoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/21 16:46
 **/
@Service
public class IsvInfoServiceImpl implements IIsvInfoService {
    @Resource
    private IIsvInfoMapper isvInfoMapper;

    @Override
    public IsvInfoDO getIsvInfoById(Long id) {
        return isvInfoMapper.getIsvInfoById(id);
    }

    @Override
    public IsvInfoDO getIsvInfoByNo(String isvNo) {
        return isvInfoMapper.selectOne(new LambdaQueryWrapper<IsvInfoDO>()
                .eq(IsvInfoDO::getIsvNo, isvNo));
    }
}
